<template>
	<view class="content">
		<view class="block1"></view>
		<view class="news-con">
			<view class="detail-text" v-html="newsEn.content"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newsEn: {
					id: '',
					protocolCode: '',
					type: '',
					title: '',
					content: '',
				},
				
			};
		},
		onLoad() {
			this.loadAgreement()
		},
		methods:{
			//加载服务协议
			loadAgreement(){
				uni.showLoading({
					title: '处理中..',
					mask: true,
				})
				let _params = {
					code:'private_code',
				}
				let that = this
				that.$http.get("/protocol/queryByCode", {params:_params}).then(res=>{
					if(res.data.success){
						uni.hideLoading()
						that.newsEn = res.data.result
					}else{
						uni.hideLoading()
						that.$tip.cyToast('加载失败');
					}
				}).catch(err => {
					uni.hideLoading()
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
.content {
	height: auto;
	overflow: hidden;
	background-color: #ffffff;
	.block1{
		width: 100%;
		height: 110px;
		background: url('https://ylb123.oss-cn-hangzhou.aliyuncs.com/app/service-agreement-top-deco-1.jpg') 0 0 no-repeat;
		background-size: 100% auto;
		border: 0px solid #f00;
	}
	/* 新闻公告 */
	.news-con{
		.detail-text{
			padding: 0 20upx 20upx 20upx;
			text-align: justify;
			font-size: $uni-font-size-paragraph;
			line-height: 30px;
		}
		.rich-con{
			font-size: $uni-font-size-paragraph;
		}
	}
}
</style>
